home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Positioning of ProxyShape
- Sent: 3/28/96 8:56 AM
- Received: 3/28/96 9:04 AM
- From: lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I'm using the CProxyShape class of ODFDraw to show an embedded frame. I use
- >CProxyShape::MapShape to position the proxyshape at specified location in my
- >embedding frame (top, centre, bottom). When I store and read back my part,
- >the positioning is not persistent, but the embedded frame shows up in the
- >top-left corner of the embedding frame. The selection shape (the four
- >handles) is shown in the saved position. It seems that the shape of the
- >proxy and the position of the embedded frame is not syncronised. When I use
- >the CProxyShape::MapShapefunction to move the shape, they get syncronised
- >again. How do I get the embedded frame in the right position when I launch
- >my document?
- >
- >Steinar Tyvand
- >--------------------------------------------------------------
- >Steinar Tyvand e-mail: Steinar.Tyvand@si.sintef.no
- >SINTEF Unimed Rehab Phone: +47 22 06 78 29 (work)
- >Box 124 Blindern Fax: +47 22 06 79 09 (work)
- >N-0314 Oslo Phone: +47 67 56 17 79 (home)
- >Norway Fax: +47 67 56 05 36 (home)
- >--------------------------------------------------------------
-
- In OpenDoc only the frame shape is persistent. The position is not. The
- position is described by the external transform of the facet which is not
- persitent. It is up to the part to save it along with its intrinsic data.
- In ODFDraw I save the position of the embedded frame using the fFrameRect
- in CProxyShape. The fFrameRect is then used when I create the facet to
- calculate the external transform. Check that you are using the right
- position when creating your embedded facet after reading the document.
-
- .......................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- .......................................................................
-
-
-